package com.pengbos;

import java.util.Iterator;
import java.util.List;

public class PhotoEntry {
	
	private String title;
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	private String url;
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}


	private long id;
	
	//String thumbUrl;
	
	
//	public String getThumbUrl() {
//		return thumbUrl;
//	}
//	public void setThumbUrl(String thumbUrl) {
//		this.thumbUrl = thumbUrl;
//	}

	//int price;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * 
	 */
	private List<ReceiverDetail> receivers;
	
	public List<ReceiverDetail> getReceivers() {
		return receivers;
	}
	public void setReceivers(List<ReceiverDetail> receivers) {
		this.receivers = receivers;
	}
	
	public double getPrice() {
		double price = 0.0;
		for(Iterator<ReceiverDetail> i = receivers.iterator();i.hasNext();){
			ReceiverDetail receiver = i.next();
			price += receiver.getAmount();
		}
		return price;
	}
//	public void setPrice(int price) {
//		this.price = price;
//	}
	
	

}
